#!/usr/bin/env python3
# -*- coding: utf-8 -*-

end = input('input the number: ')
end = int(end)
sum = 1
for x in range(1, end + 1):
    sum = sum * x
    
print(sum)
